package com.cskaoyan.controller.wx_brand.exception;

import com.cskaoyan.bean.wx_brand.exception.BrandParamException;
import com.cskaoyan.bean.wx_resp.WxRespVo;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @author liXiaoFei
 * @date 2021/10/21 16:01
 */
@RestControllerAdvice
public class WxBrandExceptionControllerAdvice {

    @ExceptionHandler(BrandParamException.class)
    public WxRespVo loginException(){
        return WxRespVo.error("参数错误");
    }

}
